package br.com.tcc.testebma;

import android.app.Activity;
import android.os.Bundle;
import android.widget.EditText;

public class InformacaoActivity extends Activity {
	private EditText edtInformacao;
	private String informacao;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setWidgets();
		getExtras();
		setFields();

	}

	private void setWidgets() {
		setContentView(R.layout.informacao_view);
		
		edtInformacao = (EditText) findViewById(R.idInformacao.edtInformcao);
	}

	private void getExtras() {
		Bundle bundle = getIntent().getExtras();
		if(bundle != null){
			informacao = bundle.getString(MenuActivity.INFORMACAO);
		}
		
	}

	private void setFields() {
		edtInformacao.setText(informacao);
		
	}
}
